from pathlib import Path

path_lists = ['10_chapter_10_test\cat1s.txt', '10_chapter_10_test\dogs.txt']
for path_list in path_lists:
    try:
        path = Path(path_list)
        content = path.read_text()
        print(content)
    except FileNotFoundError:
        pass